﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public partial class Template
    {
        public override string ToString()
        {
            return this.Name;
        }

        public static IQueryable<Template> GetAll()
        {
            DataAccessDataContext dc = new DataAccessDataContext();

            return from t in dc.Templates
                   select t;
        }      
    }
}
